interface GetPhoneNumberAPIResData {
  code: number
  data: string
  msg: string
  time: string
}

interface GetPhoneNumberAPIData {
  code: string
}

export function getPhoneNumberAPI(data: GetPhoneNumberAPIData, token: string) {
  return httpInstance.post<GetPhoneNumberAPIResData, GetPhoneNumberAPIData>(
    '/api/user/getPhoneNumber',
    data,
    { headers: { token } },
  )
}
